package org.apache.catalina;

import java.util.EventObject;

/**
 * 2020/7/22 : 14:54
 */
public final class LifecycleEvent extends EventObject {
    
    private Lifecycle lifecycle;
    private String type;
    private Object data;
    
    /**
     * Constructs a prototypical Event.
     *
     *
     * @param lifecycle
     * @param type
     * @param lifecycle The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public LifecycleEvent(Lifecycle lifecycle, String type, Object data) {
        super(lifecycle);
        this.lifecycle = lifecycle;
        this.type = type;
        this.data = data;
        
    }
}
